 package cn.edu.scau.cmi.liangzaoqing.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.edu.scau.cmi.liangzaoqing.spring.bean.Student;
import cn.edu.scau.cmi.liangzaoqing.spring.util.ApplicationContextUtil;


public class Spring03SingletonApplicationContextClient {

	public Spring03SingletonApplicationContextClient() {
	}

	public static void main(String[] args) {
		ApplicationContext ac = ApplicationContextUtil.getApplicationContext();
		Student zhangsan=(Student) ac.getBean("zhangsan");
		System.out.println(zhangsan.getName()+"的毕业设计指导导师是："+zhangsan.getTutor().getName());
	}

}
